package com.taxi.remote;

import com.taxi.dto.PassengerUser;
import com.taxi.request.VerificationCodeDTO;
import com.taxi.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: aniu
 * @Date: 2023/9/21
 * @ClassName: ServicePassengerUserClient
 * @Description: Write class functionality and purpose here.
 * @Version: 1.0
 */
@FeignClient("service-passenger-user")
public interface ServicePassengerUserClient {

    @PostMapping("/user")
    public Result loginOrReg(@RequestBody VerificationCodeDTO verificationCodeDTO);

    @GetMapping("/user/{phone}")
    public Result<PassengerUser> getUserByPhone(@PathVariable("phone")String phone);
}
